﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PPAP.BO;

namespace PPAP.Web.Master
{
    public partial class PPAPNewsShow : PageBase
    {
        PPAPNewsBO mbo = new PPAPNewsBO();
        LogBO lbo = new LogBO();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["id"] != null)
                {
                    PPAP.Model.PPAPNews mail = mbo.GetModel(int.Parse(Request.QueryString["id"].ToString()));

                    Label1.Text = mail.CONTENT;
                    lblDate.Text = "The last edit time:" + DateTime.Parse(mail.CREATETIME.ToString()).ToString("yyyy-MM-dd");
                    lblTitle.Text = mail.TITLE;
                   // lblUser.Text = "The last edit user:" + mail.CREATEDBY;

                }
            }
        }

       
    }
}